#if !defined(AFX_GRAPHICVIEW_H__429B6D2C_1196_4A71_92A5_0D7CD9F22425__INCLUDED_)
#define AFX_GRAPHICVIEW_H__429B6D2C_1196_4A71_92A5_0D7CD9F22425__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GraphicView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGraphicView view

class CGraphicView : public CView
{
protected:
    CGraphicView();           // protected constructor used by dynamic creation
    DECLARE_DYNCREATE(CGraphicView)

// Attributes
public:

// Operations
public:

// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CGraphicView)
    protected:
    virtual void OnDraw(CDC* pDC);      // overridden to draw this view
    //}}AFX_VIRTUAL

// Implementation
protected:
    virtual ~CGraphicView();
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif

    // Generated message map functions
protected:
    //{{AFX_MSG(CGraphicView)
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnTimer(UINT nIDEvent);
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
private:
    CWnd *pGraphic;
    CPoint m_pos;
    CSize  m_size;
    unsigned int  m_dataBuf[400];
    unsigned int m_head;
    unsigned int m_tail;
    int a;
public:
    void SetPos(CPoint Point);
    void SetSize(CSize Size);
    CPoint GetPos();
    CSize GetSize();
    void AddData(unsigned int data);
    unsigned int GetData();

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GRAPHICVIEW_H__429B6D2C_1196_4A71_92A5_0D7CD9F22425__INCLUDED_)
